package com.example.ymm.modules1.service.dto.socket;

import com.example.ymm.util.JsonUtil;
import lombok.Data;


/**
 * socket 用户行为
 */
public class PushBusiness {

    private String method;
    private String content;
    private String type;

    public static final String ASK="ASK";//答题
    public static final String SUB="SUB";//交卷

    public PushBusiness(){}
    public PushBusiness(String content, String method, String type){
        this.content = content;
        this.method = method;
        this.type = type;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return JsonUtil.parseEntityToJson(this).toJSONString();
    }
}
